package com.example.administrator.guosaicheku_13.util;

import android.content.Context;
import android.content.SharedPreferences;

public class savechewei {
    public static void save(String che, Context context){
        SharedPreferences sp = context.getSharedPreferences("data.xml",Context.MODE_PRIVATE);
        SharedPreferences.Editor edit = sp.edit();
        edit.putString("che",che);
        edit.commit();
    }
    public static String get(Context context){
        SharedPreferences sp = context.getSharedPreferences("data.xml",Context.MODE_PRIVATE);
        String che = sp.getString("che", null);
        return che;
    }
}
